package com.baobao.druid.mapper.ds1;

import com.baobao.druid.domain.Student;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Qualifier;

import java.util.List;

/**
 * @author baobao
 * @create 2020-09-04 14:21
 * @description
 */
//@Qualifier("db1SqlSessionTemplate")
public interface StudentMapper {
    @Insert("insert into student values (#{name},#{age})")
    void insert(Student student);

    @Select("select * from student")
    List<Student> getAll();
}
